package com.example.bankmanage.dto.rep;

import com.example.bankmanage.constant.StatusCards;
import com.example.bankmanage.serialize.PhoneDesensitizationSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdateCardReqDTO {
    private int accountId;
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String cardNumber;
    StatusCards cardType; // enum('DEBIT','CREDIT')
    private Date expiry_date;//到期日期
    private String cvv;
    private Date issueDate;
    StatusCards status; //ENUM('ACTIVE', 'EXPIRED', 'LOST', 'STOLEN', 'CANCELLED') DEFAULT 'ACTIVE',
    private double dailyLimit;
}
